import { request } from '@/utils/request'
import type { UserApi } from './index.d'

export const userApi: UserApi = {
  dharmlogin: (data) => {
    return request.post('/app-api/mdl/auth/dharmlogin', {
      dharmaName: data.dharmaName,
      password: data.password,
    })
  },
  sendSmsCode: (phone) => {
    return request.get(`/sms/send?phone=${phone}`)
  },
}
